home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVPGOTO.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  33 lines

  1. /*================================================*/
  2. /* TVPGOTO.C                                      */
  3. /*                                                */
  4. /* (c) Copyright 1988 Ralf Brown                  */
  5. /*     All Rights Reserved                        */
  6. /* May be freely copied for noncommercial use as  */
  7. /* long as this copyright notice is kept intact   */
  8. /* and any changes are indicated in the comment   */
  9. /* blocks for the functions                       */
  10. /*================================================*/
  11.  
  12. #include "tvapi.h"
  13.  
  14. /*================================================*/
  15. /* TVptr_goto     move the pointer to given pos   */
  16. /*   Ralf Brown 5/10/88                           */
  17. /*================================================*/
  18.  
  19. void pascal TVptr_goto(OBJECT ptr,int row,int col)
  20. {
  21.    PARMLIST2 p ;
  22.  
  23.    if (ptr)
  24.       {
  25.       p.num_args = 2 ;
  26.       p.arg[0] = row ;  /* y coordinate */
  27.       p.arg[1] = col ;  /* x coordinate */
  28.       TVsendmsg(WRITE_MSG, TOS, ptr, (PARMLIST *)&p) ;
  29.       }
  30. }
  31.  
  32. /* End of TVPGOTO.C */
  33.